package com.gr.labbackend.controller.manage.events;

import com.alibaba.fastjson.JSONObject;
import com.gr.labbackend.service.manage.events.DeleteEventService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DeleteEventController {

    @Autowired
    private DeleteEventService deleteEventService;

    @PostMapping("/api/manage/event/delete-event")
    public JSONObject deleteEvent(@RequestParam int id) {
        return deleteEventService.deleteEvent(id);
    }

}
